import { Task, AISuggestion } from '../types'

export const mockTasks: Task[] = [
  {
    id: '1',
    title: '完成项目方案撰写',
    description: '为新产品撰写详细的项目实施方案',
    dueDate: new Date(Date.now() + 2 * 24 * 60 * 60 * 1000), // 后天
    priority: 'P1',
    category: 'work',
    tags: ['项目', '方案'],
    completed: false,
    subtasks: [
      { id: '1-1', title: '市场调研', completed: true },
      { id: '1-2', title: '技术架构设计', completed: false },
      { id: '1-3', title: '成本预算', completed: false },
    ],
    notes: '需要在下周三的评审会上展示',
    status: 'in_progress',
    boardPosition: 0,
    createdAt: new Date(Date.now() - 3 * 24 * 60 * 60 * 1000),
    updatedAt: new Date(),
  },
  {
    id: '2',
    title: '和老王开项目评审会',
    description: '讨论项目进展和下一步计划',
    dueDate: new Date(Date.now() + 1 * 24 * 60 * 60 * 1000), // 明天
    priority: 'P0',
    category: 'work',
    tags: ['会议', '评审'],
    completed: false,
    subtasks: [
      { id: '2-1', title: '准备会议资料', completed: false },
      { id: '2-2', title: '发送会议邀请', completed: true },
    ],
    notes: '准备PPT，提前15分钟到会议室',
    status: 'todo',
    boardPosition: 1,
    createdAt: new Date(Date.now() - 1 * 24 * 60 * 60 * 1000),
    updatedAt: new Date(),
  },
  {
    id: '3',
    title: '健身锻炼',
    description: '保持身体健康，提高工作效率',
    dueDate: new Date(), // 今天
    priority: 'P2',
    category: 'health',
    tags: ['健身', '运动'],
    completed: false,
    subtasks: [],
    notes: '每周至少3次，每次30分钟以上',
    status: 'review',
    boardPosition: 0,
    createdAt: new Date(Date.now() - 2 * 24 * 60 * 60 * 1000),
    updatedAt: new Date(),
  },
  {
    id: '4',
    title: '学习React最新特性',
    description: '跟上前端技术发展趋势',
    dueDate: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000), // 下周
    priority: 'P3',
    category: 'learning',
    tags: ['学习', 'React', '前端'],
    completed: false,
    subtasks: [
      { id: '4-1', title: '阅读官方文档', completed: false },
    ],
    notes: '重点学习React Hooks和Context API',
    status: 'done',
    boardPosition: 0,
    createdAt: new Date(Date.now() - 5 * 24 * 60 * 60 * 1000),
    updatedAt: new Date(),
  },
  {
    id: '5',
    title: '完成月度报告',
    description: '总结本月工作成果和下月计划',
    dueDate: new Date(Date.now() + 3 * 24 * 60 * 60 * 1000), // 3天后
    priority: 'P1',
    category: 'work',
    tags: ['报告', '总结'],
    completed: false,
    subtasks: [],
    notes: '可能需要加班到晚上9点',
    status: 'todo',
    boardPosition: 2,
    createdAt: new Date(Date.now() - 1 * 24 * 60 * 60 * 1000),
    updatedAt: new Date(),
  },
]

export const mockAISuggestions: AISuggestion[] = [
  {
    id: 's1',
    type: 'auto_schedule',
    title: '建议安排任务时间',
    content: '根据您的日程，建议将"完成项目方案撰写"安排在明天上午9-11点，这段时间您通常效率最高。',
    priority: 'high',
    actions: [
      { label: '接受建议', action: 'accept', primary: true },
      { label: '稍后提醒', action: 'snooze' }
    ],
    taskId: '1',
    createdAt: '2024-01-15T10:30:00Z',
  },
  {
    id: 's2',
    type: 'task_breakdown',
    title: '任务分解建议',
    content: '检测到"完成月度报告"是一个较大的任务，建议分解为：数据收集、报告撰写、审核修改三个子任务。',
    priority: 'medium',
    actions: [
      { label: '自动分解', action: 'breakdown', primary: true },
      { label: '忽略', action: 'dismiss' }
    ],
    taskId: '5',
    createdAt: '2024-01-15T09:15:00Z',
  },
  {
    id: 's3',
    type: 'priority_adjustment',
    title: '优先级调整建议',
    content: '明天有重要会议，建议将"和老王开项目评审会"的优先级保持为P0，并提前准备相关材料。',
    priority: 'high',
    actions: [
      { label: '保持P0', action: 'keep_priority', primary: true },
      { label: '了解', action: 'acknowledge' }
    ],
    createdAt: '2024-01-15T08:45:00Z',
  },
]